package cn.edu.scau.cmi.zhouxinyue.NormalFactory;

import javafx.fxml.FXML;
import javafx.scene.control.MenuButton;
import javafx.scene.control.MenuItem;

import javafx.scene.control.TextArea;

public class NormalFactoryController {
	@FXML
	private MenuButton CM;
	@FXML
	private TextArea MInfo;
	@FXML
	private MenuItem CHOB;
	@FXML
	private MenuItem CHOC;
	@FXML
	private MenuItem CHOP;
	private String MeatInfo;
	public void ProduceBeef() {
		CM.setText(CHOB.getText());
		MeatInfo=new BeefMeatFactory().getMeatObj().getMeatInfo();
		MInfo.setText(MeatInfo);
	}
	public void ProduceChicken() {
		CM.setText(CHOC.getText());
		MeatInfo=new ChickenMeatFactory().getMeatObj().getMeatInfo();
		MInfo.setText(MeatInfo);
	}
	public void ProducePork() {
		CM.setText(CHOC.getText());
		MeatInfo=new PorkMeatFactory().getMeatObj().getMeatInfo();
		MInfo.setText(MeatInfo);
	}

}
